projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e1bdf7
)
Use char16_t cast instead of ushort cast
author
Claudio Cambra
<claudio.cambra@nextcloud.com>
Thu, 28 Nov 2024 09:53:02 +0000
(17:53 +0800)
committer
Matthieu Gallien
<matthieu.gallien@nextcloud.com>
Fri, 20 Dec 2024 15:26:57 +0000
(16:26 +0100)
Fix deprecation warning
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/common/ownsql.cpp
patch
|
blob
|
history
diff --git
a/src/common/ownsql.cpp
b/src/common/ownsql.cpp
index 3577f489479c9d35526967564f5319d52e3b2adb..79e097b4529118d63929506b6846421afd335b44 100644
(file)
--- a/
src/common/ownsql.cpp
+++ b/
src/common/ownsql.cpp
@@
-412,7
+412,7
@@
bool SqlQuery::nullValue(int index)
QString SqlQuery::stringValue(int index)
{
- return QString::fromUtf16(static_cast<const
ushor
t *>(sqlite3_column_text16(_stmt, index)));
+ return QString::fromUtf16(static_cast<const
char16_
t *>(sqlite3_column_text16(_stmt, index)));
}
int SqlQuery::intValue(int index)